/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Dashboard;
import edu.wpi.first.wpilibj.DriverStation;

/**
 *
 * @author Jared
 * When updateAll is called the shooter speed will be sent to the
 * LabVIEW dashboard
 */
public class UpdateVals {
    private static UpdateVals instance;
    /**
     * Use this instead of creating a new instance!!!!!!!!!!
     * Or bad!!
     * @return 
     */
     public static UpdateVals getInstance() {
        if(instance == null){
            instance = new UpdateVals();
        }
        return instance;
    }
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
     
    /**
     * 
     * 
     * 
     * When updateAll is called the shooter speed will be sent to the 
     * LabVIEW DebugDash
     * 
     */ 
    public void updateAll(){
        Dashboard highpriority = DriverStation.getInstance().getDashboardPackerHigh();
        highpriority.addCluster();{
       highpriority.addDouble(Shooter.getInstance().getShooterSpeed());
    }  highpriority.finalizeCluster();
   
        
    
}
    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}
